/*
 * string.h
 *
 * Copyright (C) 2017 Aleksandar Andrejevic <theflash@sdf.lonestar.org>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef _STRING_H_
#define _STRING_H_

#include <mlcrt.h>
#include <stddef.h>
#include <stdint.h>
#include <limits.h>
#include <ctype.h>

char *__CRT_PUBLIC(strcpy)(char *destination, const char *source);
char *__CRT_PUBLIC(strncpy)(char *destination, const char *source, size_t n);
int __CRT_PUBLIC(strcmp)(const char *str1, const char *str2);
int __CRT_PUBLIC(stricmp)(const char *str1, const char *str2);
int __CRT_PUBLIC(strncmp)(const char *str1, const char *str2, size_t n);
char *__CRT_PUBLIC(strstr)(const char *haystack, const char *needle);
char *__CRT_PUBLIC(strchr)(const char *str, char c);
char *__CRT_PUBLIC(strrchr)(const char *str, char c);
char *__CRT_PUBLIC(strcat)(char *destination, const char *source);
char *__CRT_PUBLIC(strncat)(char *destination, const char *source, size_t n);
char *__CRT_PUBLIC(strdup)(const char *source);
char *__CRT_PUBLIC(strtok)(char *str, const char *delimiters);
char *__CRT_PUBLIC(strtok_r)(char *str, const char *delimiters, char **endptr);
size_t __CRT_PUBLIC(strlen)(const char *str);
void __CRT_PUBLIC(strrev)(char *str);
void __CRT_PUBLIC(memset)(void *ptr, int value, size_t n);
void __CRT_PUBLIC(memcpy)(void *destination, const void *source, size_t n);
void __CRT_PUBLIC(memmove)(void *destination, const void *source, size_t n);
int __CRT_PUBLIC(memcmp)(const void *mem1, const void *mem2, size_t n);

#endif
